package com.green.web.controller;

import org.springframework.web.bind.annotation.*;


/**
 * RestController注解
 */
@RestController
@RequestMapping("/test2")
public class Test2Controller {



    @RequestMapping(value = "/test",method = RequestMethod.GET)
    public String test(){
        System.out.println("1111方法执行了");
        return "hello world";
    }


    @GetMapping("/test2")
    public String test2(){
        System.out.println("1111方法执行了");
        return "hello world";
    }
}
